<?php 
$tpl=new TemplatePower("skin/sk_home.htm");
$tpl->prepare();


//users online
require("../lib/usersonline.php");
$visitors_online = new usersOnline; 
$info['useronline']=$visitors_online->count_users();
$tpl->assignGlobal("online" , $info['useronline']);

// contact new
$sql="SELECT * FROM contact WHERE xem=0";
$db=$DB->query($sql);
$tpl->assign("contactnew",mysql_num_rows($db));


//counter
include('../lib/counter.php');
$tpl->assignGlobal("total",$counter['total']);
$tpl->assignGlobal("today",$counter['today']);
$tpl->assignGlobal("yesterday",$counter['yesterday']);


$tpl->printToScreen();
?>